/**
 * 简历投递接口
 *
 * @date 2021-08-03
 * @author 逗号米
 */

import http from '@/api'

/**
 * 前缀
 *
 * @type {string}
 */
const prefix = `${http}/cms/personal/resume-send`


/**
 * 首页
 *
 * @type {string}
 */
export const index: string = `${prefix}`

/**
 * 查询
 *
 * @return {string}
 */
export const query: string = `${prefix}/query`

/**
 * 显示
 *
 * @param {number} id
 * @return {string}
 */
export const show = (id: number): string => `${prefix}/${id}`

/**
 * 删除
 *
 * @param {int} id
 * @return {string}
 */
export const destroy = (id: number): string => `${prefix}/${id}`

/**
 * 按简历查询投递记录
 *
 * @param {number} id
 * @return {string}
 */
export const getPersonalResumeSend = (id: number): string => `${prefix}/resume/${id}`

/**
 * 按个人用户查询投递记录
 *
 * @param {number} uid
 * @return {string}
 */
export const getPersonalUserSend = (uid: number): string => `${prefix}/personal-user/${uid}`

/**
 * 按职位查询投递记录
 *
 * @param {number} id
 * @return {string}
 */
export const getCompanyJobReceive = (id: number): string => `${prefix}/company-job/${id}`

/**
 * 按企业用户查询投递记录
 *
 * @param {number} uid
 * @return {string}
 */
export const getCompanyUserReceive = (uid: number): string => `${prefix}/company-user/${uid}`